import request from '@/utils/request'

// 获取列表
export function leadGetList(pd) {
	return request({
		url: '/hrp/lead/getList',
		method: 'get',
		params: pd
	})
}
// 获取条数
export function leadGetCount(pd) {
	return request({
		url: '/hrp/lead/getCount',
		method: 'get',
		params: pd
	})
}

// 新增
export function leadAdd(data) {
	return request({
		url: '/hrp/lead',
		method: 'post',
		data: data
	})
}

// 修改
export function leadEdit(pd) {
	return request({
		url: '/hrp/lead',
		method: 'put',
		data: pd
	})
}

// 删除参数配置
export function leadDel(id) {
	return request({
		url: '/hrp/lead/id/' + id,
		method: 'delete'
	})
}

// =============线索跟踪日志记录

// 获取列表
export function leadGetCommentList(pd) {
	return request({
		url: '/hrp/lead/getCommentList',
		method: 'get',
		params: pd
	})
}

// 新增
export function leadCommentAdd(data) {
	return request({
		url: '/hrp/lead/comment',
		method: 'post',
		data: data
	})
}
